$(function () {
    addSomething();
});

function addSomething() {
    let xhr=new XMLHttpRequest();
    xhr.onreadystatechange = function () {
        if (xhr.status === 200 && xhr.readyState === 4) {
            let $s=$("#boxes");
            let s=xhr.responseText;
            let t = JSON.parse(s);
            let len=t.list.length;
            for(let i=0;i<len;i++){
                $s.append("<h5><input type=\"checkbox\" name=\""+t.list[i].id+"\" class=\"checkbox\">"+
                    t.list[i].name+"："+t.list[i].date+"</h5>");
            }
        }
    };
    xhr.open("GET", "./get_members");
    xhr.send();
}